# -*- coding: utf-8 -*-
# @Author：fanmingxiang@touty.io
# @Date  ：2022/form_case/27 16:07
import os
import xlrd


def read_xlsx(filename):
    filepath = os.path.dirname(os.getcwd()) + os.sep + 'data' + os.sep + filename
    data = xlrd.open_workbook(filepath)
    table = data.sheets()[0]
    arr = []
    rows = table.nrows
    for i in range(rows):
        arr.append(table.row_values(i))
    return arr
